package com.stxx.assistant.framwork.filter;

import org.noear.solon.annotation.Component;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Filter;
import org.noear.solon.core.handle.FilterChain;

/**
 * @author Fuzhenlei
 * @date 2025/01/11 18:18
 */
@Component
public class BreakerFilter implements Filter {
    @Override
    public void doFilter(Context ctx, FilterChain chain) throws Throwable {
//        try(AutoCloseable entry = Limiter.entry()){
//            chain.doFilter(ctx);
//        }catch (Exception e){
//            ctx.output("网络服务器有点儿忙，请稍后再试");
//        }

        chain.doFilter(ctx);
    }
}